package cn.codeinn.service1.conf;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import cn.codeinn.common.util.SwaggerBasic;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@Configuration
@EnableSwagger2
public class Service1SwaggerConfig extends SwaggerBasic {

	@Bean("service1")
	public Docket api() {
		return docket(PathSelectors.ant("/**"), "/", RequestHandlerSelectors.basePackage("cn.codeinn.service1.controller"));
	}

}
